home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / Text Capture FKEY / My_BeginUpdate.c < prev    next >
C/C++ Source or Header  |  1992-01-28  |  273b  |  21 lines

  1. #include "defs.h"
  2.  
  3. #include <Traps.h>
  4. #include "patching.h"
  5.  
  6. pascal void My_BeginUpDate( void )
  7. {
  8.     WindowPtr    the_window;
  9.     
  10.     asm {
  11.         HEAD_PATCH_HEADER( BeginUpDate )
  12.         move.L        8(A6), the_window
  13.     }
  14.     
  15.     if (the_window == front)
  16.         Begin_copy();
  17.     
  18.     asm {
  19.         HEAD_PATCH_FINISH
  20.     }
  21. }